/**
 * 作者: wgx
 * 日期: 2025-03-25 14:20:00
 * 备注: 广告配置表
 */
package com.motu.monstercity.server.game.commondata.system;

import io.vertx.core.json.JsonObject;

public class AdvideoMainModel {
    protected int id; // id
    protected String reward; // 观看广告获得的奖励 (itemid;num;itemid;num)
    protected int limitNum; // 每日限制次数

    public AdvideoMainModel() {
    }

    public AdvideoMainModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        limitNum = obj.containsKey("limit_num") ? obj.getInteger("limit_num") : 0;
    }

    public int getId() {
        return id;
    }

    public String getReward() {
        return reward;
    }

    public int getLimitNum() {
        return limitNum;
    }

}
